package com.wsd.jing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wsd.jing.entity.Post;
import com.wsd.jing.request.CommonRequest;

import java.util.List;
import java.util.Map;

/**
 * All rights Reserved, Designed By www.tom.com
 *
 * @author tom
 * @version 1.0.0
 * @projectName: jing
 * @packageName: com.wsd.jing.service
 * @className: IPostService
 * @description: 职位服务类
 * @createDate 2022-11-20 07:41
 * @copyright 2022-11-20 07:41 www.tom.com Inc. All rights reserved.
 */
public interface IPostService extends IService<Post> {

    /**
     * @param post:职位
     * @return Boolean
     * @author tom
     * @description 新增职位
     * @createDate 2022-11-20 07:41
     */
    Boolean insertPost(Post post);

    /**
     * @param post:职位
     * @return Boolean
     * @author tom
     * @description 修改职位
     * @createDate 2022-11-20 07:41
     */
    Boolean updatePost(Post post);

    /**
     * @param id:id
     * @return Boolean
     * @author tom
     * @description 删除职位
     * @createDate 2022-11-20 07:41
     */
    Boolean deletePost(Integer id);

    /**
     * @param ids:id
     * @return Boolean
     * @author tom
     * @description 批量删除职位
     * @createDate 2022-11-20 07:41
     */
    Boolean deletePosts(String ids);

    /**
     * @param id:id
     * @return Post
     * @author tom
     * @description 查询职位
     * @createDate 2022-11-20 07:41
     */
    Post getPost(Integer id);

    /**
     * @param commonRequest:排序参数
     * @param post:职位
     * @return List<Post>
     * @author tom
     * @description 查询职位列表
     * @createDate 2022-11-20 07:41
     */
    List<Post> listPosts(CommonRequest commonRequest, Post post);

    /**
     * @param commonRequest:分页参数
     * @param post:职位
     * @return Map<String, Object>
     * @author tom
     * @description 分页查询职位列表
     * @createDate 2022-11-20 07:41
     */
    Map<String, Object> listPagePosts(CommonRequest commonRequest, Post post);
}
